package com.qijian.maindata.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.maindata.domain.ProcessOrder;
import com.qijian.maindata.domain.ProcessOrderUsers;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * 工序工单对象
 *
 * @author qijian
 * @date 2021-10-09
 */

@Data
@ToString
public class ProcessOrder4BudgetVo  {


    @JsonSerialize(using= ToStringSerializer.class)
    private String projectId;

    //工序车间
    private String costFactory;
    //工序类型
    private String processTypeName;
    //成本
    private BigDecimal contentCost;

    public BigDecimal getContentCost() {
        if(this.contentCost != null){
            return this.contentCost.setScale(2,BigDecimal.ROUND_HALF_UP);
        }
        return null;
    }
}
